package com.ruoyi.demo.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出差信息业务对象 bs_trips
 *
 * @author lgp
 * @date 2022-07-29
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("出差信息业务对象")
public class BsTripsBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 出差编号
     */
    private String tripcode;

    private String userId;

    private String deptId;

    /**
     * 出差标题
     */
    @ApiModelProperty(value = "出差标题", required = true)
    @NotBlank(message = "出差标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 出差内容
     */
    @ApiModelProperty(value = "出差内容", required = true)
    @NotBlank(message = "出差内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 出差人
     */
    @ApiModelProperty(value = "出差人", required = true)
    @NotBlank(message = "出差人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String triper;

    /**
     * 目的地
     */
    @ApiModelProperty(value = "目的地", required = true)
    @NotBlank(message = "目的地不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 时长
     */
    @ApiModelProperty(value = "时长", required = true)
    @NotNull(message = "时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal days;

    /**
     * 开始日期
     */
    @ApiModelProperty(value = "开始日期", required = true)
    @NotNull(message = "开始日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束日期
     */
    @ApiModelProperty(value = "结束日期", required = true)
    @NotNull(message = "结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 是否同意
     */
    @ApiModelProperty(value = "是否审核", required = true)
    @NotNull(message = "是否审核不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


}
